<!DOCTYPE html>
<html>
<head>
  <title>登录页面</title>
  <style>
    body {
      font-family: Arial, sans-serif;
    }
    .container {
      width: 300px;
      margin: 0 auto;
      padding: 20px;
      background-color: #f2f2f2;
      border: 1px solid #ccc;
    }
    .container h2 {
      text-align: center;
    }
    .container label, .container input[type="text"], .container input[type="password"], .container input[type="submit"] {
      display: block;
      width: 100%;
      margin-bottom: 10px;
    }
    .container label {
      font-weight: bold;
    }
    .container input[type="submit"] {
      padding: 10px;
      background-color: #4CAF50;
      color: white;
      border: none;
      cursor: pointer;
    }
    .container input[type="submit"]:hover {
      background-color: #45a049;
    }
  </style>
</head>
<body>
  <div class="container">
    <h2>登录</h2>
    <form action="/request/" method="POST">{% csrf_token %}
      <label for="username">用户名</label>
      <input type="text" id="username" name="username" required>

      <label for="password">密码</label>
      <input type="password" id="password" name="password" required>

      <input type="submit" value="登录">
    </form>
  </div>
</body>
</html>